package com.lotus.lqmp.service.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lotus.lqmp.base.biz.bean.PageQuery;
import com.lotus.lqmp.service.controller.vo.req.BizCommentSaveReq;
import com.lotus.lqmp.service.controller.vo.req.BizCommentQueryReq;
import com.lotus.lqmp.service.controller.vo.resp.BizCommentResp;
import com.lotus.lqmp.service.service.BizCommentService;
import com.lotus.platform.common.model.base.BaseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * 意见表Controller
 *
 * @author Shiheng.Liu1
 * @date 2022-03-29
 */
@RestController
@RequestMapping("/api/v1/bizComment")
public class BizCommentController{

    @Autowired
    private BizCommentService BizCommentService;

    /**
     * 意见新增
     */
    @ApiOperation("意见新增")
    @PostMapping("/save")
    public BaseResult<Long> save(@RequestBody @Valid BizCommentSaveReq bizCommentSaveReq) {
        return BaseResult.ok(1L);
    }

    /**
     * 意见查询
     */
    @ApiOperation("意见查询")
    @PostMapping("/page")
    public BaseResult<Page<BizCommentResp>> page(@RequestBody @Valid PageQuery<BizCommentQueryReq> bizCommentQueryReq) {
        return BaseResult.ok();
    }

}
